<div id="page" class="downloadpage twocolumn clearfix">
    <div id="maincontent3" class="clearfix">
	<div id="detailview">
            
<div class="breadcrumb">
<?php if(isset($breadcrums))
{
	?>
    <div class="main-title" xmlns:v="http://rdf.data-vocabulary.org/#">
            <span>
                <a href="<?php echo base_url();?>" class="home-icon">
                    Trang chủ
                </a>
            </span>
			<?php foreach ($breadcrums as $breadcrum){
				$breadcrum = (object)$breadcrum;
			?>
                <span typeof="v:Breadcrumb">
                    <a rel="v:url" property="v:title" class="breadcrumb-platform" href="<?php echo cate_url($breadcrum);?>">
                        <?php echo $breadcrum->CAT_NAME;?>
                    </a>
                </span>
				<?php }?>
                 
    </div>
	<?php 
	}?>
</div>



<div id="download_box" class="download-box">

                    <h2 class="message">Chọn link tải về </h2>
                        <div class="primary-download list-download" style="visibility: visible;">
                            <h3 id="PrimaryLinkTitle" class="download-title">Chọn các link dưới đây để tải về</h3>
							<?php 
							if(isset($downloads)){
							foreach($downloads as $download){
							?>
							
                            <a id="permalink" downloadurl="<?php echo $download->LINK_ID;?>" class="download-link-button  clearfix link_download" title="Tải xuống <?php echo $soft->SOFT_NAME;?>"  target="_blank" rel="nofollow" href="<?php echo $download->LINK_LINKDOWN;?>">
                                <span class="link-title"><?php echo ($download->LINK_NAME !='')?$download->LINK_NAME:$download->LINK_LINKDOWN;?></span>
                                <span id="DownloadLabel" class="link-download">Download</span>
                            </a>
							<?php
							}
							}?>
							
                        </div>
                </div>
            <h1 class="detail-title">
                <img src="<?php echo $soft->SOFT_ICON;?>" class="software-icon" />
              <?php echo $soft->SOFT_NAME;?>
                    <em><?php echo $soft->SOFT_VERSION;?></em>
                                    <i><?php echo $soft->SOFT_NAME_DESCRIPTION;?></i>  </h1>

            <ul class="detail-info">
                <li class="rating-info clearfix">
                    <span class="item-label">Đánh giá:</span>
                    <span class="item-info" itemscope itemtype="http://data-vocabulary.org/Review-aggregate">
                        <meta itemprop="itemreviewed" content="Mr.Shot" />
                        <meta itemprop="photo" content="<?php echo $soft->SOFT_THUMB;?>" />
                        <meta itemprop="rating" content="3" />
                        <meta itemprop="votes" content="1" />
                        <a class="rating-icon icon-3">
                            <span id="rating" data-rating="3" data-id="79576"></span>
                            <i>(1 Đánh giá )</i> </a>
                        <link rel="image_src" href="<?php echo $soft->SOFT_THUMB;?>" />
                    </span>
                </li>
                    <li class="publisher-info">
                        <span class="item-label">Phát hành:</span>
                        
                        <a href="<?php echo $soft->MAN_LINK;?>" target="_blank" rel="nofolow"  >
                            <?php echo $soft->MAN_NAME;?>
                        </a>
                    </li>
                                    <li class="version-info">
                        <span class="item-label">Version:</span>
                        <span class="item-info"><?php echo $soft->SOFT_VERSION;?></span>
                    </li>
                <li class="license-info">
                    <span class="item-label">Sử dụng:</span>
                    <span class="item-info"><span class="<?php echo $soft->LICE_CODE;?>"><?php echo $soft->LICE_NAME;?></span>
</span>
                </li>
                    <li class="filesize-info">
                        <span class="item-label">Dung lượng:</span>
                        <span class="item-info">
<?php echo $soft->SOFT_FILESIZE;?></span>
                    </li>
				                                    <li class="downloads-info clearfix">
                        <span class="item-label">Lượt tải:</span>
                        <span class="item-info">
                            <?php echo numberFormat($soft->SOFT_DOWN);?>
                        </span>
                    </li>
                <li class="dateadded-info clearfix">
                    <span class="item-label">Ng&#224;y ph&#225;t h&#224;nh:</span>
                    <span class="item-info"><?php echo date("d/m/Y",$soft->SOFT_TIME_CREATE);?>
                    </span>
                </li>
                <li class="dateadded-info clearfix">
                    <span class="item-label">Ngày cập nhật:</span>
                    <span class="item-info"><?php echo date("d/m/Y",$soft->SOFT_TIME_UPDATE);?>
                    </span>
                </li>				

                    <li class="requirements-info">
                        <span class="item-label">Yêu cầu:</span>
                        <span class="item-info"><?php echo $soft->SOFT_REQUIREMENT_OS;?></span>
                    </li>
            </ul>
			
			<div class="content-overview">
                        <div class="detail-content">
                            <p>
                              <?php echo $soft->SOFT_CONTENT_SHORT;?>
                            </p>
                        </div>
                </div>
            <div class="clear">
            </div>
            <div class="sharebox"></div>
           
            <div class="clear">
            </div>
            <div class="content-overview">
                    
                    <div class="clear"></div>
                            </div>
			
			<div class="clear">
            </div>
			
			<div style="width:336px; margin:20px auto">
				
			</div>
			
            <div class="clear">
            </div>
                <div class="publisher-softwares">
                    <a  href="<?php echo man_url($soft);?>"  >Xem các phần mềm khác của <em><?php echo $soft->MAN_NAME;?></em></a>
                </div>
				<?php /*
                            <div class='tags'>
                    <span>Tìm thêm:</span>
                        <a href="/timkiem/Mr+Shot/index.aspx">Mr Shot</a>
    <a href="/timkiem/t%E1%BA%A3i+Mr+Shot/index.aspx">tải Mr Shot</a>
    <a href="/timkiem/download+Mr+Shot/index.aspx">download Mr Shot</a>
    <a href="/timkiem/Mr+Shot+download/index.aspx">Mr Shot download</a>
    <a href="/timkiem/ch%E1%BB%A5p+%E1%BA%A3nh+m%C3%A0n+h%C3%ACnh/index.aspx">chụp ảnh m&#224;n h&#236;nh</a>
    <a href="/timkiem/ch%E1%BB%89nh+s%E1%BB%ADa+%E1%BA%A3nh+ch%E1%BB%A5p+m%C3%A0n+h%C3%ACnh/index.aspx">chỉnh sửa ảnh chụp m&#224;n h&#236;nh</a>
    <a href="/timkiem/ch%E1%BB%A5p+%E1%BA%A3nh+c%E1%BB%ADa+s%E1%BB%95/index.aspx">chụp ảnh cửa sổ</a>
    <a href="/timkiem/ch%E1%BB%A5p+%E1%BA%A3nh+khu+v%E1%BB%B1c+m%C3%A0n+h%C3%ACnh/index.aspx">chụp ảnh khu vực m&#224;n h&#236;nh</a>
    <a href="/timkiem/screenshot/index.aspx">screenshot</a>
    <a href="/timkiem/capture+screen/index.aspx">capture screen</a>

                </div>
                     */?>   
   <?php echo $this->load->view($this->template->prefix_frontend . 'view/related');?>
          
        </div>
        </div>
        </div>
		
<script>
$(".link_download").mousedown(function(b){
<?php /*		  if(b.which==1)alert('Left Mouse Button Clicked');
else if(b.which==2)alert('Middle Mouse Button Clicked');
else if(b.which==3)alert('Right Mouse Button Clicked');
*/ ?>
if(b.which==2 || b.which==1 || b.which==3 )
{
	var downloadurl=$(this).attr("downloadurl");
	$.ajax({
		type: 'POST',
		url: "<?php echo base_url()?>count-download.html",
		data: "downloadurl="+downloadurl, 
			success: function (data){
			//alert(data);
		},
		error:function (xhr, ajaxOptions, thrownError){
/*		alert(xhr.responseText);
		alert("Lỗi hệ thống không thể post nội dung.");
	*/
		}   
	});

}
});
</script>